import logging



def log():
    logging.basicConfig(level='INFO', format='%(name)s-时间：%(asctime)s-模块：%(module)s-行号：%(lineno)d-级别：%(levelname)s-日志详情：%(message)s')
    logger = logging.getLogger('appiumUI')
    return logger





logger = log()
if __name__ == '__main__':
    logger.info('test-appiumUI')

